package com.sss.hloster02;

import java.util.Scanner;

public class SelectTest {

	public static void main(String[] args) {
		int a[]  = intiArr();
		SelectSort arr = new SelectSort(a);
	}

	private static int[] intiArr() {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入需要排序的元素个数：");
		// 数组个数
		int count = sc.nextInt();
		// 创建数组
		int[] arr = new int[count];
		// 初始化数组
		for (int i = 0; i < count; i++) {
			System.out.println("请输入数组的第  " + (i + 1) + "个元素：");
			int input = sc.nextInt();
			arr[i] = input;
		}
		//返回值
		return arr;
	}
}
